# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'uart_swd.ui'
#
# Created: Tue Sep  1 18:27:55 2015
#      by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!

from PySide import QtCore, QtGui

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(493, 836)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.FileLayout = QtGui.QHBoxLayout()
        self.FileLayout.setSpacing(2)
        self.FileLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.FileLayout.setObjectName("FileLayout")
        self.FileLabel = QtGui.QLabel(self.centralwidget)
        self.FileLabel.setMaximumSize(QtCore.QSize(16777215, 20))
        self.FileLabel.setObjectName("FileLabel")
        self.FileLayout.addWidget(self.FileLabel)
        self.FilePath = QtGui.QLineEdit(self.centralwidget)
        self.FilePath.setObjectName("FilePath")
        self.FileLayout.addWidget(self.FilePath)
        self.FileSelectButton = QtGui.QPushButton(self.centralwidget)
        self.FileSelectButton.setMinimumSize(QtCore.QSize(0, 0))
        self.FileSelectButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.FileSelectButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("folder_open_24px.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.FileSelectButton.setIcon(icon)
        self.FileSelectButton.setObjectName("FileSelectButton")
        self.FileLayout.addWidget(self.FileSelectButton)
        self.verticalLayout.addLayout(self.FileLayout)
        self.PortLayout = QtGui.QHBoxLayout()
        self.PortLayout.setSpacing(2)
        self.PortLayout.setContentsMargins(-1, 0, -1, -1)
        self.PortLayout.setObjectName("PortLayout")
        self.PortSelectLayout = QtGui.QVBoxLayout()
        self.PortSelectLayout.setSpacing(2)
        self.PortSelectLayout.setContentsMargins(-1, -1, 10, -1)
        self.PortSelectLayout.setObjectName("PortSelectLayout")
        self.PortLabel = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PortLabel.sizePolicy().hasHeightForWidth())
        self.PortLabel.setSizePolicy(sizePolicy)
        self.PortLabel.setMinimumSize(QtCore.QSize(0, 0))
        self.PortLabel.setMaximumSize(QtCore.QSize(150, 30))
        self.PortLabel.setObjectName("PortLabel")
        self.PortSelectLayout.addWidget(self.PortLabel)
        self.PortList = QtGui.QListWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PortList.sizePolicy().hasHeightForWidth())
        self.PortList.setSizePolicy(sizePolicy)
        self.PortList.setMaximumSize(QtCore.QSize(200, 16777215))
        self.PortList.setObjectName("PortList")
        self.PortSelectLayout.addWidget(self.PortList)
        self.PortSwitch = QtGui.QPushButton(self.centralwidget)
        self.PortSwitch.setMaximumSize(QtCore.QSize(80, 16777215))
        self.PortSwitch.setObjectName("PortSwitch")
        self.PortSelectLayout.addWidget(self.PortSwitch)
        self.PortLayout.addLayout(self.PortSelectLayout)
        self.PortConfigLayout = QtGui.QVBoxLayout()
        self.PortConfigLayout.setSpacing(2)
        self.PortConfigLayout.setObjectName("PortConfigLayout")
        self.BaudLayout = QtGui.QHBoxLayout()
        self.BaudLayout.setSpacing(2)
        self.BaudLayout.setObjectName("BaudLayout")
        self.BaudLabel = QtGui.QLabel(self.centralwidget)
        self.BaudLabel.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.BaudLabel.sizePolicy().hasHeightForWidth())
        self.BaudLabel.setSizePolicy(sizePolicy)
        self.BaudLabel.setMinimumSize(QtCore.QSize(60, 0))
        self.BaudLabel.setObjectName("BaudLabel")
        self.BaudLayout.addWidget(self.BaudLabel)
        self.BaudList = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.BaudList.sizePolicy().hasHeightForWidth())
        self.BaudList.setSizePolicy(sizePolicy)
        self.BaudList.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.BaudList.setObjectName("BaudList")
        self.BaudList.addItem("")
        self.BaudList.addItem("")
        self.BaudLayout.addWidget(self.BaudList)
        self.PortConfigLayout.addLayout(self.BaudLayout)
        self.DataBitsLayout = QtGui.QHBoxLayout()
        self.DataBitsLayout.setSpacing(2)
        self.DataBitsLayout.setObjectName("DataBitsLayout")
        self.DataBitsLabel = QtGui.QLabel(self.centralwidget)
        self.DataBitsLabel.setMinimumSize(QtCore.QSize(60, 0))
        self.DataBitsLabel.setObjectName("DataBitsLabel")
        self.DataBitsLayout.addWidget(self.DataBitsLabel)
        self.DataBitsList = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.DataBitsList.sizePolicy().hasHeightForWidth())
        self.DataBitsList.setSizePolicy(sizePolicy)
        self.DataBitsList.setObjectName("DataBitsList")
        self.DataBitsLayout.addWidget(self.DataBitsList)
        self.PortConfigLayout.addLayout(self.DataBitsLayout)
        self.StopBitsLayout = QtGui.QHBoxLayout()
        self.StopBitsLayout.setSpacing(2)
        self.StopBitsLayout.setObjectName("StopBitsLayout")
        self.StopBitsLabel = QtGui.QLabel(self.centralwidget)
        self.StopBitsLabel.setMinimumSize(QtCore.QSize(60, 0))
        self.StopBitsLabel.setObjectName("StopBitsLabel")
        self.StopBitsLayout.addWidget(self.StopBitsLabel)
        self.StopBitsList = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.StopBitsList.sizePolicy().hasHeightForWidth())
        self.StopBitsList.setSizePolicy(sizePolicy)
        self.StopBitsList.setObjectName("StopBitsList")
        self.StopBitsLayout.addWidget(self.StopBitsList)
        self.PortConfigLayout.addLayout(self.StopBitsLayout)
        self.ParityLayout = QtGui.QHBoxLayout()
        self.ParityLayout.setSpacing(2)
        self.ParityLayout.setObjectName("ParityLayout")
        self.ParityLabel = QtGui.QLabel(self.centralwidget)
        self.ParityLabel.setMinimumSize(QtCore.QSize(60, 0))
        self.ParityLabel.setObjectName("ParityLabel")
        self.ParityLayout.addWidget(self.ParityLabel)
        self.ParityList = QtGui.QComboBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ParityList.sizePolicy().hasHeightForWidth())
        self.ParityList.setSizePolicy(sizePolicy)
        self.ParityList.setObjectName("ParityList")
        self.ParityLayout.addWidget(self.ParityList)
        self.PortConfigLayout.addLayout(self.ParityLayout)
        self.PortLayout.addLayout(self.PortConfigLayout)
        self.verticalLayout.addLayout(self.PortLayout)
        self.LogLayout = QtGui.QVBoxLayout()
        self.LogLayout.setSpacing(2)
        self.LogLayout.setObjectName("LogLayout")
        self.LogTitleLayout = QtGui.QHBoxLayout()
        self.LogTitleLayout.setObjectName("LogTitleLayout")
        self.LogLabel = QtGui.QLabel(self.centralwidget)
        self.LogLabel.setObjectName("LogLabel")
        self.LogTitleLayout.addWidget(self.LogLabel)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.LogTitleLayout.addItem(spacerItem)
        self.LogClearButton = QtGui.QPushButton(self.centralwidget)
        self.LogClearButton.setObjectName("LogClearButton")
        self.LogTitleLayout.addWidget(self.LogClearButton)
        self.LogLayout.addLayout(self.LogTitleLayout)
        self.LogContext = QtGui.QTextEdit(self.centralwidget)
        self.LogContext.setObjectName("LogContext")
        self.LogLayout.addWidget(self.LogContext)
        self.verticalLayout.addLayout(self.LogLayout)
        self.StatusLayout = QtGui.QHBoxLayout()
        self.StatusLayout.setSpacing(2)
        self.StatusLayout.setObjectName("StatusLayout")
        self.status = QtGui.QLabel(self.centralwidget)
        self.status.setObjectName("status")
        self.StatusLayout.addWidget(self.status)
        self.progressBar = QtGui.QProgressBar(self.centralwidget)
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.StatusLayout.addWidget(self.progressBar)
        self.verticalLayout.addLayout(self.StatusLayout)
        self.gridLayout.addLayout(self.verticalLayout, 0, 1, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.toolBar.sizePolicy().hasHeightForWidth())
        self.toolBar.setSizePolicy(sizePolicy)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionDownload = QtGui.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("download_24px.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDownload.setIcon(icon1)
        self.actionDownload.setObjectName("actionDownload")
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setIcon(icon)
        self.actionOpen.setObjectName("actionOpen")
        self.toolBar.addAction(self.actionOpen)
        self.toolBar.addAction(self.actionDownload)

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.FileSelectButton, QtCore.SIGNAL("clicked()"), self.FilePath.update)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.FileLabel.setText(QtGui.QApplication.translate("MainWindow", "File:", None, QtGui.QApplication.UnicodeUTF8))
        self.PortLabel.setText(QtGui.QApplication.translate("MainWindow", "Port:", None, QtGui.QApplication.UnicodeUTF8))
        self.PortSwitch.setText(QtGui.QApplication.translate("MainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))
        self.BaudLabel.setText(QtGui.QApplication.translate("MainWindow", "Baud:", None, QtGui.QApplication.UnicodeUTF8))
        self.BaudList.setItemText(0, QtGui.QApplication.translate("MainWindow", "115200", None, QtGui.QApplication.UnicodeUTF8))
        self.BaudList.setItemText(1, QtGui.QApplication.translate("MainWindow", "9600", None, QtGui.QApplication.UnicodeUTF8))
        self.DataBitsLabel.setText(QtGui.QApplication.translate("MainWindow", "DataBits:", None, QtGui.QApplication.UnicodeUTF8))
        self.StopBitsLabel.setText(QtGui.QApplication.translate("MainWindow", "StopBits", None, QtGui.QApplication.UnicodeUTF8))
        self.ParityLabel.setText(QtGui.QApplication.translate("MainWindow", "Parity:", None, QtGui.QApplication.UnicodeUTF8))
        self.LogLabel.setText(QtGui.QApplication.translate("MainWindow", "Log:", None, QtGui.QApplication.UnicodeUTF8))
        self.LogClearButton.setText(QtGui.QApplication.translate("MainWindow", "Clear", None, QtGui.QApplication.UnicodeUTF8))
        self.status.setText(QtGui.QApplication.translate("MainWindow", "Ready", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("MainWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
        self.actionDownload.setText(QtGui.QApplication.translate("MainWindow", "Download", None, QtGui.QApplication.UnicodeUTF8))
        self.actionDownload.setToolTip(QtGui.QApplication.translate("MainWindow", "Download", None, QtGui.QApplication.UnicodeUTF8))
        self.actionOpen.setText(QtGui.QApplication.translate("MainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))
        self.actionOpen.setToolTip(QtGui.QApplication.translate("MainWindow", "Open", None, QtGui.QApplication.UnicodeUTF8))

